package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.ProviderSchedule;
import com.ruoyi.common.core.domain.entity.ServiceReservation;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.List;

@Mapper
public interface ServiceReservationMapper {

    List<ServiceReservation> selectServiceReservationList(ServiceReservation reservation);

    ServiceReservation selectServiceReservationById(Long id);

    int insertServiceReservation(ServiceReservation reservation);


    int updateServiceReservation(ServiceReservation reservation);

    int deleteServiceReservationById(Long id);

    int deleteServiceReservationByIds(Long[] ids);

    int deleteServiceReservationByIds(String ids);



    // 添加 @Param 注解
    int countReservationByProviderAndTime(
            @Param("providerId") Long providerId,
            @Param("reservationDate") LocalDate reservationDate,
            @Param("reservationTime") LocalTime reservationTime
    );
}